var Mock = require('mockjs')

exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data": {
      "date":"2017-11-16T11:30:44",
      "fundId":"568",
      "fundList": [
        {
            "value": "559"
        },
        {
            "value": "537"
        },
        {
            "value": "568"
        }],
      "summary": {
        "totalbuybalance": "@integer(1,100000)",
        "potentialCNY": '"@integer(1,100000)"',
        "nacount": "@float(0,100,0,2)%",
        "totalsellbalance": "@integer(1,10000)",
        "ordertradenum": "@integer(1,10000)/@integer(1,10000)",
        "nabalance": "@float(0,100,0,2)%",
        "spreadcapture": "@float(0,100,0,2)%",
        "exerate": "@float(0,100,0,2)%",
        "normalcount": "@float(0,100,0,2)%",
        "normalbalance":"@float(0,100,0,2)%",
        "badcount": "@float(0,100,0,2)%",
        "potentialBps": '"@float(0,100,0,2)"',
        "goodcount": "@float(0,100,0,2)%",
        "expcost": "@integer(-10000,10000)",
        "goodbalance": "@float(0,100,0,2)%",
        "totalbalance": "@integer(-10000,10000)",
        "impcost": "@integer(-10000,10000)",
        "badbalance": "@float(0,100,0,2)%",
        "balanceper": "@integer(1,10000)/@integer(1,10000)",
      },
      "listPerformance|3": [
        "@cparagraph(1)"
      ],
      "listsum|2": [
        "@cparagraph(1)"
      ],
      "stockBalance|5": [
        {
          "percent": "@float(0,100,0,2)",
          "stockCode": "@integer(0,10000).SH"
        }
      ],
      "spreadCaptureHist|60": [
        {
          "spreadCapture|+1": -30,
          "count": "@integer(0,120)"
        }
      ]
    }
  })
}
